package com.future.mayi.response;

import android.text.TextUtils;

import com.future.baselib.entity.BaseResponse;
import com.future.mayi.app.App;
import com.future.mayi.model.VersionModel;
import com.google.gson.JsonObject;

import org.json.JSONException;
import org.json.JSONObject;

public class VersionResponse extends BaseResponse {

    public VersionModel model;


    @Override
    public void parseInfo(String content) {
        JSONObject object = null;
        String android = null;
        try {
            object = new JSONObject(content);
            android = object.optString("android");
        } catch (JSONException e) {
            e.printStackTrace();
        }
        if (!TextUtils.isEmpty(android))
            model = App.getGson().fromJson(android, VersionModel.class);
    }

}
